150 A = 770:T = 6:L = 7: POKE T,90: POKE L,100: CALL A
160 DIM T(200),L(200)
170 GOSUB 380
180 CO = 0
190 IF CO >200 THEN PRINT "BUFFER FULL. SAVING DATA":CO = 200: GOSUB 470: END
200 PRINT "INPUT> TONE,TONELENGTH ": PRINT "FOR LINE #";: INVERSE : PRINT CO;: NORMAL : INPUT " ?";TN,TL
210 IF TN >255 OR TL >255 THEN PRINT "NO NUMBERS GRATER THAN 255 PLEASE ": GOTO 200
220 T(CO) = TN:L(CO) = TL
230 PRINT "COMAND---->";: GET A$: PRINT A$: IF A$ = "A" THEN CO = CO +1: GOTO 190
240 IF LEFT$(A$,1) = "C" THEN 300
250 IF LEFT$(A$,1) = "D" THEN 350
260 IF LEFT$(A$,1) = "S" THEN 470
270 IF LEFT$(A$,1) = "P" THEN 360
280 IF LEFT$(A$,1) = "N" THEN 410
290 PRINT "COMANDS ARE": PRINT "-----------": PRINT "'A'= ADD ": PRINT "'C'=CHANGE A NOTE": PRINT "'D'=DELETE THE FILE IN MEMORY": PRINT "'S'=SAVE THE FILE TO DISK": PRINT "'P'=PLAY THE TUNE": PRINT "'N'=GET NEW SONG FROM DISK": GOTO 230
300 INPUT "WHICH NUMBER DO YOU WISH TO CHANGE ?";X
305 IF X >CO THEN PRINT "PLEASE PRINT A VALUE LESS THAN "CO +1: GOTO 300
310 PRINT "INPUT> TONE,TONELENGTH ": PRINT "FOR LINE #";: INVERSE : PRINT X: NORMAL : PRINT "OLD VALUES WERE T="T(X)" L="L(X)
314 INPUT TN,TL
320 IF TN >255 OR TL >255 THEN PRINT "NO NUMBERS GRATER THAN 255 PLEASE ": GOTO 310
330 T(X) = TN:L(X) = TL
340 GOTO 230
350 CO = 0: PRINT "DONE": GOTO 190
360 INPUT "STARTING FROM WHICH LINE ?";Y: IF Y >CO THEN PRINT "LINE NUMBER TO HIGH TRY AGAIN": GOTO 360
370 FOR X = Y TO CO: POKE T,T(X): POKE L,L(X): PRINT "# "X,"T= "T(X),"L= "L(X): CALL A: NEXT X: GOTO 230
380 INPUT "=1= NEW FILE, =2= OLD FILE ?";X: IF X = 1 THEN RETURN
390 IF X < >2 THEN 380
400 POP
410 PRINT "<CTRL-D>CATALOG"
415 PRINT
420 INPUT "FILENAME ?";A$: IF A$ = "" THEN 420
430 PRINT OP$;A$: PRINT RE$;A$
440 INPUT CO
450 FOR X = 0 TO CO: INPUT T(X),L(X): NEXT X
460 PRINT CL$;A$: GOTO 230
470 INPUT "FILENAME ?";A$: IF A$ = "" THEN 470
480 PRINT OP$;A$: PRINT WR$;A$
490 PRINT CO
500 FOR X = 0 TO CO: PRINT T(X): PRINT L(X): NEXT X